<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sign up</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/easy_validator.pack.js"></script>
<script type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
<script type="text/javascript"> 
$(function(){
	$("[name='cb']").each(function(){
		$(this).addClass("input_validation-failed");
	});
	
});
</script>
<link  href="css/validate.css" rel="stylesheet" type="text/css" />
<link href="css/forum.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
</div>
<div id="content">
<h3>
<%
out.println(session.getAttribute("login_msg"));
%>
</h3>
<h1>New to here? Sign up now!</h1>
<form action="insertuser.jsp" method="post"> 
<table width="650" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td>Username</td>
    <td><input name="username" type="text" reg="^[a-zA-Z][a-zA-Z0-9_]{0,15}$" tip="pick a unique name"/></td>
  </tr>
  <tr>
    <td>email</td>
    <td><input name="mail" type="text" reg="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" tip="we'll send a confirmation"/></td>
  </tr>
  <tr>
    <td>Sex</td>
    <td>  <label>
    <input type="radio" name="sex" value="male" id="sex_0" />
    male</label>
  
  <label>
    <input type="radio" name="sex" value="female" id="sex_1" />
    female</label></td>
  </tr>
  <tr>
    <td>Password</td>
    <td><input name="password" type="password" reg="^.{6,}$" tip="6 characters or more"/></td>
  </tr>
</table>

<input name="submit" type="submit" value="Sign up" /><br />
</form>
</div>
</body>
</html>